window.onload = function(){
	    var optionLis = document.getElementById("menuContainer").getElementsByTagName("li");
	    var tabLis = document.getElementById("rightArea").getElementsByTagName("div"); 
	    for(j=0;j<tabLis.length;j++){
	        if (tabLis[j].className=="show")
	            tabLis[j].className="hide";
	    }
	    for(j=0;j<optionLis.length;j++){
	        optionLis[j].className="unselected";
	    }
	    if (section=="personInformation"){
	        document.getElementById("personInformation").className="show";
	        optionLis[0].className="selected";
	    }else if (section=="order"){
	        document.getElementById("order").className="show";
	        optionLis[1].className="selected";
	    }else if (section=="complaint"){
	        document.getElementById("complaint").className="show";
	        optionLis[2].className="selected";
	    }else if (section=="examine"){
	        document.getElementById("examine").className="show";
	        optionLis[0].className="selected";
	    }else if (section=="complaintManage"){
	        document.getElementById("complaintManage").className="show";
	        optionLis[1].className="selected";
	    }else if (section=="noticeManage"){
	        document.getElementById("noticeManage").className="show";
	        optionLis[2].className="selected";
	    }else if (section=="orderManage"){
	        document.getElementById("orderManage").className="show";
	        optionLis[3].className="selected";
	    }


	    if (optionLis.length==3){
	        for(i=0;i<optionLis.length;i++){
	            optionLis[i].index = i;
	            optionLis[i].onclick = function(){
	                for(j=0;j<optionLis.length;j++){
	                    optionLis[j].className="unselected";
	                }
	                for(j=0;j<tabLis.length;j++){
	                    if (tabLis[j].className=="show")
	                        tabLis[j].className="hide";
	                }
	                this.className="selected";
	                if (this.index==0)
	                    document.getElementById("personInformation").className="show";
	                else if (this.index==1)
	                    document.getElementById("order").className="show";
	                else if (this.index==2)
	                    document.getElementById("complaint").className="show";
	            }
	        }
	    }else if(optionLis.length==4){
	        for(i=0;i<optionLis.length;i++){
	            optionLis[i].index = i;
	            optionLis[i].onclick = function(){ 
	                for(j=0;j<optionLis.length;j++){
	                    optionLis[j].className="unselected";
	                }
	                for(j=0;j<tabLis.length;j++){
	                    if (tabLis[j].className=="show")
	                        tabLis[j].className="hide";
	                }
	                this.className="selected";
	                if (this.index==0)
	                    document.getElementById("examine").className="show";
	                else if (this.index==1)
	                    document.getElementById("complaintManage").className="show";
	                else if (this.index==2)
	                    document.getElementById("noticeManage").className="show";
	                else if (this.index==3)
	                    document.getElementById("orderManage").className="show";
	            }
	        }
	    }
	    
	}



